﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Ban_giao_thiet_bi.aspx.cs" Inherits="ChucNang_Ban_giao_thiet_bi" %>

<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .cssTextBox
        {
        }
        .style4
        {
            width: 183px;
        }
        .style5
        {
            height: 26px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table cellspacing="0" cellpadding="2" style="width: 100%;" class="cssTable" border="0">
        <tr>
            <td class="cssPageTitleBG" colspan="4">
                <asp:Label ID="lbl_thong_tin_chi_tiet_tv" runat="server" CssClass="cssPageTitle"
                    Text="BIÊN BẢN BÀN GIAO THIẾT BỊ" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                &nbsp;
            </td>
            <td colspan="3">
                <asp:Label ID="m_lbl_them_moi" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                <br />
                <asp:Label ID="m_lbl_check_SN" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                <asp:HiddenField ID="hdf_id_ban_giao_thiet_bi" runat="server" />
                <asp:Label ID="Label9" CssClass="cssManField_Z" runat="server" Text="BÊN A" />
            </td>
            <td colspan="3">
                <asp:DropDownList ID="m_cbo_ten_dia_phuong_benh_vien" runat="server" Width="900px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                <asp:Label ID="Label18" CssClass="cssManField" runat="server" Text="Ông (bà)" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_ten_ben_a_1" CssClass="cssTextBox" runat="server" Width="400px" />
            </td>
            <td align="right" class="style2">
                <asp:Label ID="Label19" CssClass="cssManField" runat="server" Text="Chức vụ" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_chuc_vu_ben_a_1" CssClass="cssTextBox" runat="server" Width="400px" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                <asp:Label ID="Label7" CssClass="cssManField" runat="server" Text="Ông (bà)" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_ten_ben_a_2" CssClass="cssTextBox" runat="server" Width="400px" />
            </td>
            <td align="right" class="style2">
                <asp:Label ID="Label8" CssClass="cssManField" runat="server" Text="Chức vụ" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_chuc_vu_ben_a_2" CssClass="cssTextBox" runat="server" Width="400px" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                <asp:Label ID="Label10" CssClass="cssManField_Z" runat="server" Text="BÊN B" />
            </td>
            <td colspan="3">
                <asp:Label ID="Label15" CssClass="cssManField_Z" runat="server" Text=": CÔNG TY TNHH VẠN NIÊN" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                <asp:Label ID="Label11" CssClass="cssManField" runat="server" Text="Ông (bà)" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_ten_ben_b_1" CssClass="cssTextBox" runat="server" Width="400px" />
            </td>
            <td align="right" class="style2">
                <asp:Label ID="Label12" CssClass="cssManField" runat="server" Text="Chức vụ" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_chuc_vu_ben_b_1" CssClass="cssTextBox" runat="server" Width="400px" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                <asp:Label ID="Label13" CssClass="cssManField" runat="server" Text="Ông (bà)" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_ten_ben_b_2" CssClass="cssTextBox" runat="server" Width="400px" />
            </td>
            <td align="right" class="style2">
                <asp:Label ID="Label14" CssClass="cssManField" runat="server" Text="Chức vụ" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_chuc_vu_ben_b_2" CssClass="cssTextBox" runat="server" Width="400px" />
            </td>
        </tr>
        <tr>
            <td align="center" class="style2" colspan="4">
                <asp:Label ID="Label16" CssClass="cssManField" runat="server" Text=" Bên B bàn giao máy móc thiết bị cho bên A như sau:" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                <asp:Label ID="Label17" CssClass="cssManField" runat="server" Text="Tên máy" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_ten_may" CssClass="cssTextBox" runat="server" Width="400px"
                    ReadOnly="True" />
            </td>
            <td align="right" class="style2">
                <asp:Label ID="Label20" CssClass="cssManField" runat="server" Text="Hãng sản xuất" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_hang_san_xuat" CssClass="cssTextBox" runat="server" Width="400px"
                    ReadOnly="True" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                <asp:Label ID="Label21" CssClass="cssManField" runat="server" Text="Model" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_model" CssClass="cssTextBox" runat="server" Width="400px"
                    ReadOnly="True" />
            </td>
            <td align="right" class="style2">
                <asp:Label ID="Label22" CssClass="cssManField" runat="server" Text="Xuất xứ" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_xuat_xu" CssClass="cssTextBox" runat="server" Width="400px"
                    ReadOnly="True" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                <asp:Label ID="Label23" CssClass="cssManField" runat="server" Text="SN" />
            </td>
            <td>
                <asp:TextBox ID="m_txt_sn" CssClass="cssTextBox" runat="server" Width="300px" />
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="m_btn_chon" runat="server" OnClick="m_btn_chon_Click" Text="Chọn"
                    Width="80px" />
            </td>
            <td align="right" class="style2">
                <asp:Label ID="Label1" CssClass="cssManField" runat="server" Text="Ngày bàn giao" />
            </td>
            <td>
                <ew:CalendarPopup ID="m_txt_ngay_ban_giao" runat="server" ControlDisplay="TextBoxImage"
                    GoToTodayText="Hôm nay:" ImageUrl="~/Images/cal.gif" Nullable="True" NullableLabelText=""
                    ShowGoToToday="True" Width="300px" SelectedDate="" Text="" Culture="vi-VN" DisableTextboxEntry="False">
                    <WeekdayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <WeekendStyle BackColor="LightGray" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <OffMonthStyle BackColor="AntiqueWhite" Font-Names="Verdana,Helvetica,Tahoma,Arial"
                        Font-Size="XX-Small" ForeColor="Gray" />
                    <SelectedDateStyle BackColor="Yellow" Font-Names="Verdana,Helvetica,Tahoma,Arial"
                        Font-Size="XX-Small" ForeColor="Black" />
                    <MonthHeaderStyle BackColor="Yellow" Font-Names="Verdana,Helvetica,Tahoma,Arial"
                        Font-Size="XX-Small" ForeColor="Black" />
                    <DayHeaderStyle BackColor="Orange" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <ClearDateStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <GoToTodayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                    <TodayDayStyle BackColor="LightGoldenrodYellow" Font-Names="Verdana,Helvetica,Tahoma,Arial"
                        Font-Size="XX-Small" ForeColor="Black" />
                    <HolidayStyle BackColor="White" Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small"
                        ForeColor="Black" />
                </ew:CalendarPopup>
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                <asp:Label ID="Label24" CssClass="cssManField" runat="server" Text="Phụ kiện đi kèm" />
            </td>
            <td colspan="3">
                <asp:TextBox ID="m_txt_phu_kien_di_kem" CssClass="cssTextBox" runat="server" Width="900px"
                    Height="165px" />
            </td>
        </tr>
        <tr>
            <td colspan="4" align="center" class="style5">
                <asp:Button ID="m_btn_luu_du_lieu_ban_giao" AccessKey="v" CssClass="cssButton" runat="server"
                    Width="150px" Text="Lưu dữ liệu bàn giao" Height="22px" OnClick="m_btn_luu_du_lieu_ban_giao_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="m_btn_in_bien_ban_ban_giao" AccessKey="x" CssClass="cssButton" runat="server"
                    Width="150px" Text="In biên bản bàn giao" Height="22px" />&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="m_btn_xoa_trang" AccessKey="x" CssClass="cssButton" runat="server"
                    Width="150px" Text="Xóa trắng" Height="22px" OnClick="m_btn_xoa_trang_Click1" />
            </td>
        </tr>
        <tr>
            <td class="cssPageTitleBG" colspan="4">
                <asp:Label ID="v_lbl_nhan_loc_doi_tac" runat="server" Text="Danh sách bàn giao gần nhất"
                    CssClass="cssPageTitle" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style4">
                <asp:Label ID="Label2" CssClass="cssManField" runat="server" Text="Tìm đợt bàn giao máy theo SN:" />
            </td>
            <td colspan="2">
                <asp:TextBox ID="m_txt_sn_search" CssClass="cssTextBox" runat="server" Width="98.2%" />
            </td>
            <td>
                <asp:Button ID="m_btn_tim_kiem" AccessKey="x" CssClass="cssButton" runat="server"
                    Width="150px" Text="Tìm kiếm" Height="22px" OnClick="m_btn_tim_kiem_Click" />
            </td>
        </tr>
        <!-- Lưới dữ liệu -->
        <tr>
            <td align="center" colspan="5" valign="top">
                <asp:GridView ID="m_grv_dm_doi_tac" runat="server" CellPadding="4" AutoGenerateColumns="False"
                    Width="98%" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px"
                    OnRowDeleting="m_grv_dm_doi_tac_RowDeleting" OnRowUpdating="m_grv_dm_doi_tac_RowUpdating"
                    DataKeyNames="ID">
                    <Columns>
                        <asp:TemplateField HeaderText="STT">
                            <ItemTemplate>
                                <%# Container.DataItemIndex + 1 %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="DAI_DIEN_BEN_A_1" HeaderText="Bên A" />
                        <asp:BoundField DataField="TEN_MAY" HeaderText="Tên máy" />
                        <asp:BoundField DataField="MODEL" HeaderText="Model" />
                        <asp:BoundField DataField="SN" HeaderText="SN" />
                        <asp:TemplateField HeaderText="Xem chi tiết">
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="m_lbt_chi_tiet" CommandName="Update" ToolTip="Sửa"
                                    CausesValidation="false"><center><img src="../Images/Button/edit.png" width="20px" height="20px" alt="Sửa" /></center></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Xóa">
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="m_lbt_xoa" CommandName="Delete" OnClientClick="return confirm ('Các dữ liệu liên quan cũng sẽ bị xóa. Bạn có thực sự muốn xóa ?')"
                                    ToolTip="Xóa dự án này" CausesValidation="false"><center><img src="../Images/Button/deletered.png" width="20px" height="20px" alt="Xóa" /></center></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                    <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                    <RowStyle BackColor="White" ForeColor="#003399" />
                    <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                    <SortedAscendingCellStyle BackColor="#EDF6F6" />
                    <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                    <SortedDescendingCellStyle BackColor="#D6DFDF" />
                    <SortedDescendingHeaderStyle BackColor="#002876" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
